﻿@using System.Configuration

@{
  var title = "WorldWide Telescope";

  try
  {
    if (ViewBag.Title != null && ViewBag.Title != "")
    {
      title = ViewBag.Title;
    }
  }
  catch (Exception)
  {
    // ignored
  }
}

<!DOCTYPE html>
<html>
  <head>
    <title>@title</title>
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <meta name="description" content="@(ViewBag.MetaDescription ?? "Worldwide Telescope enables your computer to function as a virtual telescope, bringing together imagery from the best telescopes in the world.")" />
    <meta name="ROBOTS" content="INDEX, FOLLOW">

    <script src="//code.jquery.com/jquery-2.1.4.min.js"></script>
    <script src="//maxcdn.bootstrapcdn.com/bootstrap/3.3.4/js/bootstrap.min.js"></script>

    <link href="@Model.CssDir/wwt.min.css?v=@Model.ResVer" rel="stylesheet" />
    <link href="//maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet">

    <script src="@Model.JsDir/main.js?v=@Model.ResVer"></script>
    <script src="@Model.JsDir/controls/user.js?v=@Model.ResVer"></script>

    <style>
      body.wwt {
        background: #011e34 url('@Model.ImgDir/bg/starfield2.png') center 0;
        background-repeat: no-repeat;
      }

      .navbar-inverse {
        background: rgba(1,30,52,.7) url(@Model.ImgDir/bg/starfield2.png) center 0;
        background-repeat: no-repeat;
      }

      .navbar-fixed-top .container {
        background-image: url(@Model.ImgDir/bg/navbar-logo-glow.png);
      }
    </style>

    <!-- Global Site Tag (gtag.js) - Google Analytics -->

    <script async src="https://www.googletagmanager.com/gtag/js?id=UA-107473046-1"></script>
    <script>
      window.dataLayer = window.dataLayer || [];
      function gtag() { dataLayer.push(arguments) };
      gtag('js', new Date());
      gtag('config', 'UA-107473046-1');
    </script>

    @RenderSection("head", required: false)
  </head>

  <body class="wwt" resLoc="@Model.ResLoc">
    <div class="bg-gradient"></div>

    @Html.Partial("TopNav")

    <div class="container" id="divMain">
      @RenderBody()
    </div>

    @Html.Partial("Footer");
  </body>
</html>
